package com.core.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author SunChangSheng
 * @apiNote 库存
 * @since 2021/9/22 17:41
 */
@FeignClient(name = "STOCK-SERVER")
public interface StockService {
    /**
     * 减库存
     * @return
     */
    @RequestMapping("stock/reduce")
    int reduce();
}
